/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.p2psimulator.gui.auxiliar;

import org.p2psimulator.events.Event;
import org.p2psimulator.events.EventHandler;
import org.p2psimulator.gui.panel.MonitorPanel;

/**
 *
 * @author Amorim
 */
public class MonitorPanelEventListener extends EventHandler{

    MonitorPanel panel;

    public MonitorPanelEventListener(MonitorPanel panel) {
        this.panel = panel;
    }

    @Override
    public void handleEvent(Event evt) {
        panel.updateStatistics();
    }

}
